cmake_minimum_required(VERSION 3.30)
project(sub)

set(CMAKE_CXX_STANDARD 11)


file(GLOB Header dep/*.h)
file(GLOB CPP dep/*.cpp)
set(CMAKE_PREFIX_DIR [[D:\Qt\build\qt-5.15.0-windows-x64-msvc64\bin]])
find_package(Qt5 COMPONENTS
        Core
)

include_directories(
        ./dep
        ./pub
)
#add_library(${PROJECT_NAME}
#        SHARED
##        main.cpp
#        ${Header}
#        ${CPP}
#        sub.cpp
#        sub.h
#        UserDataTypeListener.cpp
#        UserDataTypeListener.h
#)
add_executable(${PROJECT_NAME}
         main.cpp
        ${Header}
        ${CPP}
        sub.cpp
        sub.h
        UserDataTypeListener.cpp
        UserDataTypeListener.h
)
target_include_directories(
        ${PROJECT_NAME}
        PRIVATE
        [[C:\Users\32617\Desktop\uDDS_VS2017_Trial\uDDS_VS2017\include]]
)
target_link_directories(
        ${PROJECT_NAME}
        PRIVATE
        [[C:\Users\32617\Desktop\uDDS_VS2017_Trial\uDDS_VS2017\vs2017x64release]]
)
target_link_libraries(
        ${PROJECT_NAME}
        PRIVATE
        Qt5::Core
        uDDS
)